//
//  TZL_BaseController.m
//  MyTabbarDemo
//
//  Created by Yuki on 2021/10/11.
//

#import "TZL_BaseController.h"


@interface TZL_BaseController ()

@end

@implementation TZL_BaseController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = UIColor.whiteColor;
    self.navigationController.navigationBar.translucent = NO;//默认导航栏不透明
    self.navigationController.navigationBar.hidden = YES;

    /**  构造界面  **/
    [self _buildUI];
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
}


#pragma mark - --------- 创建界面  ---------
- (void)_buildUI{
    //只读的
    _navView = [[TZL_NavView alloc]initWithFrame:CGRectMake(0, 0, TZL_ScreenWidth(), TZL_NavgationHeight())];
    _navView.showBackBtn = YES;
    [self.view addSubview:_navView];
}


#pragma mark - --------- set方法  ---------
/// 设置标题
/// @param navgationTitle 标题
- (void)setNavgationTitle:(NSString *)navgationTitle{
    _navgationTitle = navgationTitle;
    self.navView.titleStr = navgationTitle;
}





@end
